package com.qfedu.dao;

import com.qfedu.pojo.Cards;
import com.qfedu.pojo.CreditCard;

import java.sql.Connection;
import java.util.List;

public interface CreditCardDao {
    CreditCard findCreditCard(String phone);

    int addCreditCard(CreditCard creditCard);

    CreditCard findCardsnumber(String cardnumber);

    void inMoney(CreditCard target, int money, Connection connection);

    void outMoney2(CreditCard source, double money, Connection connection);

    List<CreditCard> findIdcodeCredit(String idcode);
}
